package service

import (
	"context"
	"zxs-micro-2/servicedemo-user/logic"
	du "zxs-micro-2/zxs-micro-proto/demouser/user"
)

type User struct {
	du.UnimplementedDemoUserServer
}

func (u User) UserRegister(ctx context.Context,
	request *du.UserRegisterRequest) (*du.UserRegisterResponse, error) {
	return logic.RegisterUserLogic(ctx, request)
}

func (u User) UserLogin(ctx context.Context,
	request *du.UserLoginRequest) (*du.UserLoginResponse, error) {
	return logic.UserLoginLogic(ctx, request)
}

func (u User) UserInfo(ctx context.Context,
	request *du.UserInfoRequest) (*du.UserInfoResponse, error) {
	return logic.UserInfoLogic(ctx, request)
}
